{template Public:Page:header}


<div class="row">

     {if $slidearray}
                <div id="HomeCarousel" class="carousel slide homecarousel">
                  <ol class="carousel-indicators">
                  {foreach $slidearray $key=>$value}
                    <li data-target="#HomeCarousel" data-slide-to="{echo $key}"{if $key==0} class="active"{/if}></li>
                  {/foreach}
                  </ol>
                  <div class="carousel-inner">
                 {foreach $slidearray $key=>$value}
                    <div class="{if $key==0}active {/if}item" style="text-align:center;height:300px;"><a href="{echo $value['link']}" target="_blank"><img src="/{echo $value['image']}" style="height:300px;"/></a></div>
                 {/foreach}
                  </div>
                </div>
           {/if}
           
    <br />
    
    <div class="container">
    <div class="well">
    <table class="table table-hover">
                                    <thead class="bordered-darkorange">
                                        <tr>
                                            <th>
                                                特权项目
                                            </th>
                                            <th>
                                                普通服务商
                                            </th>
                                            <th>
                                                VIP服务商
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    	<tr>
                                            <td>
                                                VIP服务商标志
                                            </td>
                                            <td>
                                                <i class="glyphicon glyphicon-remove text-danger"></i>
                                            </td>
                                            <td>
                                                <i class="glyphicon glyphicon-ok text-success"></i>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                使用店铺LOGO
                                            </td>
                                            <td>
                                                <i class="glyphicon glyphicon-remove text-danger"></i>
                                            </td>
                                            <td>
                                                <i class="glyphicon glyphicon-ok text-success"></i>
                                            </td>
                                        </tr>
                                        <tr> 
                                            <td>
                                                使用店铺幻灯片
                                            </td>
                                          
                                          
                                            <td>
                                                <i class="glyphicon glyphicon-remove text-danger"></i>
                                            </td>
                                            <td>
                                                <i class="glyphicon glyphicon-ok text-success"></i>
                                            </td>
                                            
                                        </tr>
                                        <tr>   
                                            <td>
                                                使用推荐店铺服务
                                            </td>
                                            <td>
                                                <i class="glyphicon glyphicon-remove text-danger"></i>
                                            </td>
                                            <td>
                                               <i class="glyphicon glyphicon-ok text-success"></i>
                                            </td>
                                            
                                        </tr>
                                        <tr>   
                                            <td>
                                                使用手机安全保护
                                            </td>
                                            <td>
                                                <i class="glyphicon glyphicon-remove text-danger"></i>
                                            </td>
                                            <td>
                                               <i class="glyphicon glyphicon-ok text-success"></i>
                                            </td>
                                            
                                        </tr>
                                         <tr>   
                                            <td>
                                                店铺显示联系方式
                                            </td>
                                            <td>
                                                <i class="glyphicon glyphicon-remove text-danger"></i>
                                            </td>
                                            <td>
                                               <i class="glyphicon glyphicon-ok text-success"></i>
                                            </td>
                                            
                                        </tr>
                                        <tr>     
                                            <td>
                                                发布服务数量
                                            </td>
                                            <td>
                                                <span class="label label-danger">
                                               20
                                              </span>
                                            </td>
                                            <td>
                                               <span class="label label-success">
                                                不限
                                            	</span>
                                            </td>
                                        </tr>
                                        
                                        <tr>     
                                            <td>
                                                中标手续费
                                            </td>
                                            <td>
                                                <span class="label label-danger">
                                               20%
                                              </span>
                                            </td>
                                            <td>
                                               <span class="label label-success">
                                                0
                                            	</span>
                                            </td>
                                        </tr>
                                        
                                       <tr>     
                                            <td>
                                               推广任务手续费
                                            </td>
                                            <td>
                                                <span class="label label-danger">
                                               5%
                                              </span>
                                            </td>
                                            <td>
                                               <span class="label label-success">
                                                0
                                            	</span>
                                            </td>
                                        </tr>
                                        
                                        <tr>     
                                            <td>
                                               推广中标手续费
                                            </td>
                                            <td>
                                                <span class="label label-danger">
                                               3%
                                              </span>
                                            </td>
                                            <td>
                                               <span class="label label-success">
                                                0
                                            	</span>
                                            </td>
                                        </tr>
                                        
                                        <tr>     
                                            <td>
                                               发布服务审核
                                            </td>
                                            <td>
                                                <span class="label label-danger">
                                               需要审核
                                              </span>
                                            </td>
                                            <td>
                                               <span class="label label-success">
                                                无需审核
                                            	</span>
                                            </td>
                                        </tr>
                                         
                                    </tbody>
                                </table>
              
               <br /> 
               <h2 style="text-align:center"> {echo C('buyviptime')} 天/ <span class="color_f60">￥{echo C('buyvipmoney')}</span>元</h2>                  
           <br />                     
         <div class="row" style="text-align:center"><a class="btn btn-darkorange" href="javascript:void(0);" id="BuyVipConfirm">立即购买VIP</a></div>
         </div>
	</div>
</div>
<script>
$('.carousel').carousel();
$('#BuyVipConfirm').click(function(){

	   bootbox.confirm({  
		buttons: {  
			confirm: {  
				label: '同意',  
				className: 'btn-success'  
			},  
			cancel: {  
				label: '不同意',  
				className: 'btn-default'  
			}  
		},  
		message:  '确定支付{echo C("buyvipmoney")}元，购买VIP？',  
		callback: function(result) {  
			if(result) {  
				 bootbox.hideAll();
				 $.post('/post/vip/buy',{datatype:'json'}, function(json) {
					
						$('.bootbox').PhpappProgress({json:json});

						return true;
					
				  }, 'json');
				  
				  
				 bootbox.dialog({
					 message: '<div class="progress progress-striped active"><div style="width: 1%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" role="progressbar" class="progress-bar progress-bar-info"><span>0%</span></div></div>',
					 title: '<i class="icon fa fa-retweet"></i> 提交中',
					 closeButton: false
				 }).PhpappProgress({time:1000});
			 
				  return false; 
				
			} 
		},  
		title: "确认购买VIP",  
		});

 });
</script>

{template Public:Page:footer}